<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<#include "/common/resources.ftl"/>
<script type="text/javascript">
	function m_submit(){
		window.saveOrEditForm.submit();
	}
	
	function m_back(){
		window.location.href = 'manage';
	}
	<#if errorMsg?exists >alert('${errorMsg}');</#if>
	
	$(function(){
		$('#premisesId').combobox({
			onHidePanel: function (n,o) {
				$('#premisesName').val($('#premisesId').combo('getText'));
			}
		});
	});
</script>
</head>
<body>
  <form action="${ctx}/xf/premisesdynamic/save_edit" method="post" class="loan_list_form" name="saveOrEditForm">
  <input type="hidden" name="id" value="<#if model?exists >${model.id}</#if>" />
  <div class="fm_sty" style="margin: 20px 0px 0px;">
       	<div class="ipt_line">
			<span class="ipt_title">所属楼盘</span>
			<input type="text" name="premisesId" id="premisesId" value="<#if model?exists >${model.premisesId}</#if>" class="easyui-combobox" style="width:264px;height:39px;" data-options="valueField:'id',textField:'name',url:'${ctx}/xf/businesscircles/combo'"/>
		</div>
       	<!-- div class="ipt_line">
			<span class="ipt_title">创建时间</span>
			<input type="text" name="createTime" value="<#if model?exists >${model.createTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
		</div>
       	<div class="ipt_line">
			<span class="ipt_title">更新时间</span>
			<input type="text" name="updateTime" value="<#if model?exists >${model.updateTime?string("yyyyMMdd HH:mm:ss")}</#if>" class="easyui-datebox" panelWidth="255" style="height:39px;"/>
		</div -->
       	<div class="ipt_line">
			<span class="ipt_title">标题</span>
			<input type="text" name="title" value="<#if model?exists >${model.title}</#if>" class="ipt_226" />
		</div>
       	<div class="ipt_line">
			<span class="ipt_title">楼盘名称</span>
			<input type="text" name="premisesName" id="premisesName" value="<#if model?exists >${model.premisesName}</#if>" class="ipt_226" />
		</div>
       	<div class="ipt_line">
			<span class="ipt_title">是否详细页展示</span>
			<input type="text" name="canSee" value="<#if model?exists >${model.canSee}</#if>" style="height:39px;width:266px;" yixun_combobox="common_boolean"/>
		</div>
       	<div class="ipt_line">
			<span class="ipt_title">简介</span>
			<textarea name="remark" id="remark" style="height: 325px;"><#if model?exists >${model.remark}</#if></textarea>  
			<script type="text/javascript"> 
					var editorFinanceCycle = new UE.ui.Editor({
					}); 
					editorFinanceCycle.render("remark"); 
			</script> 
		</div>
       	<div class="ipt_line">
			<span class="ipt_title">内容</span>
			<textarea name="content" id="content" style="height: 325px;"><#if model?exists >${model.content}</#if></textarea>  
			<script type="text/javascript"> 
					var editorFinanceCycle = new UE.ui.Editor({
					}); 
					editorFinanceCycle.render("content"); 
			</script> 
		</div>
      <div class="ipt_line_long">
            <button class="red_100" onclick="javascript:m_submit();return false;">保存</button>
            <button class="red_100" onclick="javascript:m_back();return false;" style="background-color:#74D86A">返回</button>
      </div>
	</div>
	</form>
</body>
</html>
